home *** CD-ROM | disk | FTP | other *** search
Wrap
function clear_ini() { _root.model_mc.top1_mc.gotoAndStop(1); _root.model_mc.top2_mc.gotoAndStop(1); _root.model_mc.top3_mc.gotoAndStop(1); _root.model_mc.bot2_mc.gotoAndStop(1); _root.model_mc.bot1_mc.gotoAndStop(1); _root.model_mc.shoes_mc.gotoAndStop(1); _root.model_mc.jew01_mc.gotoAndStop(1); _root.model_mc.jew02_mc.gotoAndStop(1); _root.model_mc.jew03_mc.gotoAndStop(1); _root.model_mc.eye_mc.gotoAndStop(1); _root.model_mc.hair_mc.gotoAndStop(1); _root.model_mc.yaodai_mc.gotoAndStop(1); _root.model_mc.cap_mc.gotoAndStop(1); _root.model_mc.bag_mc.gotoAndStop(1); _root.model_mc.waitao_mc.gotoAndStop(1); _root.model_mc.kuwa_mc.gotoAndStop(1); _root.model_mc.glass_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear1_mc._visible = true; _root.model_mc.tools5_mc.underwear2_mc._visible = true; var _loc2_ = 1; while(_loc2_ < 22) { _root["on_clothing" + _loc2_]._visible = true; _root["on_clothing" + _loc2_] = undefined; _root.model_mc["tools" + _loc2_ + "_mc"].gotoAndStop(1); _loc2_ = _loc2_ + 1; } } function to_initialize_fun(_mc, y0) { _mc.xp = 0; _mc.yp = 0; _mc.onEnterFrame = function() { this.yp = this.yp * 0.45 + (y0 - this._y) * 0.1; this._y += this.yp; if(Math.abs(this.yp) < 0.1) { this._y = y0; delete this.onEnterFrame; } }; } function make_fun() { for(var _loc4_ in this) { if(typeof this[_loc4_] == "movieclip") { if(this[_loc4_]._name.substr(0,5) == "tools") { this[_loc4_].onRelease = function() { var _loc4_ = Number(this._name.substr(5,2)); var _loc3_ = 1; while(_loc3_ <= 7) { _root.to_initialize_fun(_root.tool_mask["thing_menu" + _loc3_],0); _root["tools0" + _loc3_].gotoAndStop(1); _loc3_ = _loc3_ + 1; } _root.to_initialize_fun(_root.tool_mask["thing_menu" + _loc4_],140); this.gotoAndStop(2); }; } if(this[_loc4_]._name.substr(0,3) == "jew") { this[_loc4_].onRelease = function() { this.gotoAndStop(2); _root.fair_menu.gotoAndStop(2); _root.hair_btn.gotoAndStop(1); }; } if(this[_loc4_]._name.substr(0,4) == "hair") { this[_loc4_].onRelease = function() { this.gotoAndStop(2); _root.fair_menu.gotoAndStop(1); _root.jew_btn.gotoAndStop(1); }; } if(this[_loc4_]._name.substr(0,3) == "btn") { this[_loc4_].onRelease = function() { gotoAndStop(110, this.n); }; this[_loc4_].onRollOver = function() { this.gotoAndStop(2); }; this[_loc4_].onRollOut = function() { this.gotoAndStop(1); }; } } } } function girl(x1, y1, s) { if(this.model_mc.x0 and this.model_mc.y0) { this.model_mc._x = this.model_mc.x0 + x1; this.model_mc._y = this.model_mc.y0 + y1; this.model_mc._xscale = this.model_mc._yscale = s; this.model_mc._rotation = 0; } trace(this.model_mc._x); } function third_ch_ini() { for(var _loc4_ in this) { if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "a") { this[_loc4_].onRelease = function() { s1_sd(); if(this != _root.on_clothing1 and this != _root.on_clothing2 and this != _root.on_clothing3 and this != _root.on_clothing4 and this != _root.on_clothing5 and this != _root.on_clothing6) { if(this._name.substr(0,2) == "a1") { var _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing1 != undefined) { _root.on_clothing1._visible = true; _root.on_clothing1 = undefined; } if(_root.on_clothing2 != undefined) { _root.on_clothing2._visible = true; _root.on_clothing2 = undefined; _root.model_mc.top2_mc.gotoAndStop(1); } if(_root.on_clothing3 != undefined) { _root.on_clothing3._visible = true; _root.on_clothing3 = undefined; _root.model_mc.bot1_mc.gotoAndStop(1); } if(_root.on_clothing4 != undefined) { _root.on_clothing4._visible = true; _root.on_clothing4 = undefined; _root.model_mc.top2_mc.gotoAndStop(1); } if(_root.on_clothing5 != undefined) { _root.on_clothing5._visible = true; _root.on_clothing5 = undefined; _root.model_mc.bot2_mc.gotoAndStop(1); } this._visible = false; _root.on_clothing1 = this; _root.model_mc.top1_mc.gotoAndStop(_loc3_); _root.model_mc.tools5_mc.underwear1_mc._visible = false; _root.model_mc.tools5_mc_.underwear2_mc._visible = false; } if(this._name.substr(0,2) == "a2") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing1 != undefined) { _root.on_clothing1._visible = true; _root.on_clothing1 = undefined; _root.model_mc.top1_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear2_mc._visible = true; } if(_root.on_clothing4 != undefined) { _root.on_clothing4._visible = true; _root.on_clothing4 = undefined; _root.model_mc.top3_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear2_mc._visible = true; } if(_root.on_clothing2 != undefined) { _root.on_clothing2._visible = true; _root.on_clothing2 = undefined; } this._visible = false; _root.on_clothing2 = this; _root.model_mc.top2_mc.gotoAndStop(_loc3_); _root.model_mc.tools5_mc.underwear1_mc._visible = false; } if(this._name.substr(0,2) == "a3") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing1 != undefined) { _root.on_clothing1._visible = true; _root.on_clothing1 = undefined; _root.model_mc.top1_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear1_mc._visible = true; } if(_root.on_clothing3 != undefined) { _root.on_clothing3._visible = true; _root.on_clothing3 = undefined; } if(_root.on_clothing5 != undefined) { _root.on_clothing5._visible = true; _root.on_clothing5 = undefined; _root.model_mc.bot2_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear1_mc._visible = true; } this._visible = false; _root.on_clothing3 = this; _root.model_mc.bot1_mc.gotoAndStop(_loc3_); _root.model_mc.tools5_mc.underwear2_mc._visible = false; } if(this._name.substr(0,2) == "a4") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing1 != undefined) { _root.on_clothing1._visible = true; _root.on_clothing1 = undefined; _root.model_mc.top1_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear2_mc._visible = true; } if(_root.on_clothing2 != undefined) { _root.on_clothing2._visible = true; _root.on_clothing2 = undefined; _root.model_mc.top2_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear2_mc._visible = true; } if(_root.on_clothing4 != undefined) { _root.on_clothing4._visible = true; _root.on_clothing4 = undefined; } this._visible = false; _root.on_clothing4 = this; _root.model_mc.top3_mc.gotoAndStop(_loc3_); _root.model_mc.tools5_mc.underwear1_mc._visible = false; } if(this._name.substr(0,2) == "a5") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing1 != undefined) { _root.on_clothing1._visible = true; _root.on_clothing1 = undefined; _root.model_mc.top1_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear1_mc._visible = true; } if(_root.on_clothing5 != undefined) { _root.on_clothing5._visible = true; _root.on_clothing5 = undefined; } if(_root.on_clothing3 != undefined) { _root.on_clothing3._visible = true; _root.on_clothing3 = undefined; _root.model_mc.bot1_mc.gotoAndStop(1); _root.model_mc.tools5_mc.underwear1_mc._visible = true; } this._visible = false; _root.on_clothing5 = this; _root.model_mc.bot2_mc.gotoAndStop(_loc3_); _root.model_mc.tools5_mc.underwear2_mc._visible = false; } if(this._name.substr(0,2) == "a9") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing10 != undefined) { _root.on_clothing10._visible = true; _root.on_clothing10 = undefined; } this._visible = false; _root.on_clothing10 = this; _root.model_mc.shoes_mc.gotoAndStop(_loc3_); } if(this._name.substr(0,2) == "aj") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing5 != undefined) { _root.on_clothing5._visible = true; _root.on_clothing5 = undefined; } this._visible = false; _root.on_clothing5 = this; _root.model_mc.jew01_mc.gotoAndStop(_loc3_); } if(this._name.substr(0,2) == "a6") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing6 != undefined) { _root.on_clothing6._visible = true; _root.on_clothing6 = undefined; } this._visible = false; _root.on_clothing6 = this; _root.model_mc.jew02_mc.gotoAndStop(_loc3_); } if(this._name.substr(0,2) == "a7") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing7 != undefined) { _root.on_clothing7._visible = true; _root.on_clothing7 = undefined; } this._visible = false; _root.on_clothing7 = this; _root.model_mc.bag_mc.gotoAndStop(_loc3_); } if(this._name.substr(0,2) == "a8") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing8 != undefined) { _root.on_clothing8._visible = true; _root.on_clothing8 = undefined; } this._visible = false; _root.on_clothing8 = this; _root.model_mc.cap_mc.gotoAndStop(_loc3_); } if(this._name.substr(0,2) == "aw") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing9 != undefined) { _root.on_clothing9._visible = true; _root.on_clothing9 = undefined; } this._visible = false; _root.on_clothing9 = this; _root.model_mc.waitao_mc.gotoAndStop(_loc3_); } if(this._name.substr(0,2) == "ay") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing11 != undefined) { _root.on_clothing11._visible = true; _root.on_clothing11 = undefined; } this._visible = false; _root.on_clothing11 = this; _root.model_mc.yaodai_mc.gotoAndStop(_loc3_); } if(this._name.substr(0,2) == "ak") { _loc3_ = Number(this._name.substr(2,2)) + 1; if(_root.on_clothing12 != undefined) { _root.on_clothing12._visible = true; _root.on_clothing12 = undefined; } this._visible = false; _root.on_clothing12 = this; _root.model_mc.jew03_mc.gotoAndStop(_loc3_); } } }; } } } function reset_one() { for(var _loc3_ in _root.model_mc) { if(typeof _root.model_mc[_loc3_] == "movieclip") { _root.model_mc[_loc3_].enabled = true; if(_root.model_mc[_loc3_]._name.substr(0,3) == "cap") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing8._visible = true; _root.on_clothing8 = undefined; }; } if(_root.model_mc[_loc3_]._name.substr(0,4) == "top1") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing1._visible = true; _root.on_clothing1 = undefined; _root.model_mc.tools5_mc.underwear1_mc._visible = true; _root.model_mc.tools5_mc.underwear2_mc._visible = true; }; } if(_root.model_mc[_loc3_]._name.substr(0,4) == "top2") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing2._visible = true; _root.on_clothing2 = undefined; _root.model_mc.tools5_mc.underwear1_mc._visible = true; }; } if(_root.model_mc[_loc3_]._name.substr(0,4) == "bot1") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing3._visible = true; _root.on_clothing3 = undefined; _root.model_mc.tools5_mc.underwear2_mc._visible = true; }; } if(_root.model_mc[_loc3_]._name.substr(0,4) == "shoe") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing4._visible = true; _root.on_clothing4 = undefined; }; } if(_root.model_mc[_loc3_]._name.substr(0,5) == "jew01") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing5._visible = true; _root.on_clothing5 = undefined; }; } if(_root.model_mc[_loc3_]._name.substr(0,5) == "jew02") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing6._visible = true; _root.on_clothing6 = undefined; }; } if(_root.model_mc[_loc3_]._name.substr(0,3) == "bag") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing7._visible = true; _root.on_clothing7 = undefined; }; } if(_root.model_mc[_loc3_]._name.substr(0,5) == "waita") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing9._visible = true; _root.on_clothing9 = undefined; }; } if(_root.model_mc[_loc3_]._name.substr(0,5) == "jew04") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing21._visible = true; _root.on_clothing21 = undefined; }; } if(_root.model_mc[_loc3_]._name.substr(0,5) == "yaoda") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing11._visible = true; _root.on_clothing11 = undefined; }; } if(_root.model_mc[_loc3_]._name.substr(0,5) == "jew03") { _root.model_mc[_loc3_].onRelease = function() { this.gotoAndStop(1); _root.on_clothing12._visible = true; _root.on_clothing12 = undefined; }; } } } } function clothing_visible() { var _loc2_ = 1; while(_loc2_ < 23) { _root["on_clothing" + _loc2_]._visible = false; _loc2_ = _loc2_ + 1; } } function sound_ini4() { _root.bg4_sound = new Sound(); _root.bg4_sound.attachSound("s4"); _root.bg4_sound.start(); _root.bg4_sound.setVolume(100); } function s1_sd() { _root.bg1_sound = new Sound(); _root.bg1_sound.attachSound("click"); _root.bg1_sound.start(); _root.bg1_sound.setVolume(100); } function sound3() { mySound3 = new Sound(); mySound3.attachSound("s3"); mySound3.start(0,999); mySound3.setVolume(100); } function end_btn_sound_fun() { mySound3.stop(); } function SetPrintJob() { my_pj = new PrintJob(); my_pj.start(); my_pj.addPage("_root",{printAsBitmap:true}); my_pj.send(); delete my_pj; } stop(); mymenu = new ContextMenu(); mymenu.hideBuiltInItems(); mymenu.builtInItems.print = true; _root.menu = mymenu; var sd_no = true; girl(0,0,160); sd_btn.onRelease = function() { if(sd_no == true) { end_btn_sound_fun(); sd_no = false; } else { sound3(); sd_no = true; } }; end_btn_sound_fun(); sound3(); third_ch_ini(); reset_one(); clothing_visible(); make_fun();